@model OurWedding1.Models.Place

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Place</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Adress</div>
    <div class="display-field">@Model.Adress</div>

    <div class="display-label">City</div>
    <div class="display-field">@Model.City</div>

    <div class="display-label">PostCode</div>
    <div class="display-field">@Model.PostCode</div>

    <div class="display-label">Latitude</div>
    <div class="display-field">@String.Format("{0:F}", Model.Latitude)</div>

    <div class="display-label">Longitude</div>
    <div class="display-field">@String.Format("{0:F}", Model.Longitude)</div>

    <div class="display-label">Website</div>
    <div class="display-field">@Model.Website</div>

    <div class="display-label">PlaceType</div>
    <div class="display-field">@(Model.PlaceType == null ? "None" : Model.PlaceType.Name)</div>

    <div class="display-label">Wedding</div>
    <div class="display-field">@(Model.Wedding == null ? "None" : Model.Wedding.Name)</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


